﻿using System.Globalization;
using System.Linq;

namespace MC.Phone.Ads.Utils
{
    public static class CultureUtils
    {
         public static string GetCountryCode(this CultureInfo culture)
         {
             if (culture.Name==string.Empty)
                 return string.Empty;
             string countryName = culture.Name.Split('-').Last();
             return countryName;
         }
    }
}